package com.hdu.dwh.pojos.model_pojos;

import java.time.LocalDateTime;

import org.apache.hadoop.yarn.webapp.hamlet.Hamlet.B;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hdu.dwh.enums.MetaColumnType;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class MetaColumn {
    @TableId(type = IdType.AUTO)
    @Schema(hidden = true)
    private Integer id;
    
    @Schema(hidden = true)
    private Long tableId;
    
    @TableField(exist = false)
    @Schema(hidden = true)
    private MetaTable table;

    private String name;

    @Schema(hidden = true)
    private String comment;

    @TableField("column_type")
    @Schema(hidden = false)
    private MetaColumnType metaColumnType;

    private String type;

    // private FunctionType functionType;

    // private Boolean isPrimaryKey;

    // private Boolean isPartitionKey;

    // private Boolean isNullable;

    

    @Schema(hidden = true)
    private LocalDateTime createdAt;

    @Schema(hidden = true)
    private LocalDateTime updatedAt;
}
